package com.example.lockfulldemo.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 渠道类型枚举值
 */
@Getter
@AllArgsConstructor
public enum ErrorCodeEnum {
    SUCCESS(0,"操作成功!"),
    fail(1,"操作失败!"),
    AUTH_ERROR(40411,"用户名或密码不存在！"),
    NO_AUTH_ERROR(40412,"无权访问！"),
    SYS_VALID_ERROR(501,"参数校验错误"),
    SYS_EXCEPTION(2,"模拟异常"),
    INVALID_TOKEN(40410,"Token无效，您无权访问该接口"),
    ;

    private Integer code;
    private String msg;
}
